package club.banyuan.oop.Geometry;

/**
 * @author edz
 * @version 1.0
 * @date 2020/11/20 下午2:34
 */
public class TestDemo {
    public static void main(String[] args) {

Cuboid cuboid=new Cuboid();
Rectangle rectangle=new Rectangle();

cuboid.setLength(10.0);
cuboid.setWidth(10.0);
cuboid.Area(10.0,10.0);
rectangle.setHeigth(20.0);
double volume=rectangle.Volume(cuboid.Area(cuboid.getLength(),cuboid.getWidth()),rectangle.getHeigth());
        System.out.println(volume);


    }
}
